﻿using AutoMapper;
using socialnetworkApp.Domain.Dto.Output;
using socialnetworkApp.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace socialnetworkApp.Domain.AutoMapper
{
    public class JobMapperProfile: Profile
    {

        public JobMapperProfile()
        {

            CreateMap<JobUsers, JobUserInfoOutput>()
                             .ForMember(dest => dest.User_Id, opt => opt.MapFrom(src => src.User_Id))
                              .ForMember(dest => dest.Email, opt => opt.MapFrom(src => src.Email))
                               .ForMember(dest => dest.Phone, opt => opt.MapFrom(src => src.Phone))
                               .ForMember(dest => dest.Nickname, opt => opt.MapFrom(src => src.Nickname));
            CreateMap<JobListing,JobListingdata>();
        }

    }
}
